#ifndef __CODON_H__
#define __CODON_H__
#include <set>
#include <vector>
#include <windows.h>
using namespace std;

//fields: [triplet] [amino acid] [fraction] [frequency: per thousand] ([number])
struct Codon
{
	char triplet[4];
	char aminoAcid;
	double fraction;
	double frequency;
	int number;
};

struct RankJoin
{
	int speciesNum;
	char triplet[4];
	int rank;
};

class SpeciesCodon
{
private:
	int	speciesNum;
	char speciesName[64];
	vector <Codon> codonData;
	
public:
	bool readCodonFromFile(const char * strFileName);
	void printData();
	friend class db;
};
#endif __CODON_H__